from chinese_calendar import is_workday
from datetime import datetime, date, timedelta


def work_day(date_day):
    if is_workday(date_day):
        print("是工作日")
        return True
    else:
        print("是休息日")
        return False


def get_date(num):  # 获取日期
    now = date.today() + timedelta(days=-1)
    print(now)
    return now


day_week = datetime.now().weekday()
def test():
    if day_week in [3, 4]:
        print(day_week+1)

test()